import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextLine()) {
            char[] charArray = sc.nextLine().toCharArray();
            int length = charArray.length;
            for (int i = 0; i < length;) {
                char[] chars = new char[8];
                for (int j = 0; j < chars.length; j++) {
                    chars[j] = '0';
                }
                if (length - i >= 8) {
                    for (int j = 0; j < chars.length; j++) {
                        chars[j] = charArray[i++];
                    }
                } else {
                    for (int j = 0; i < charArray.length; j++) {
                        chars[j] = charArray[i++];
                    }
                }
                System.out.println(new String(chars));
            }
        }
        sc.close();
    }
}